def reverse_int(n):
    return int(str(n)[::-1])

one = raw_input('--> ')
two = raw_input('--> ')

print reverse_int(reverse_int(one) + reverse_int(two))


